﻿#ifndef C3FDGEOMWIDGET_H
#define C3FDGEOMWIDGET_H

#include <QTreeWidget>
#include <QFile>

class QTreeWidgetItem;

namespace GUI
{
	class MainWindow;
}

namespace MainWidget
{
	class C3fdGeomWidget : public QTreeWidget
	{
		Q_OBJECT
	public:
		C3fdGeomWidget(GUI::MainWindow *m, QWidget *parent = nullptr);
		~C3fdGeomWidget();

		void updateC3fdRowTree();
	signals:
		//更新显示状态
		void renderGeomSig(QStringList, bool);
		void updateDisplayStatus(QString name, bool isShow);

	public slots:
		void importGeomtrySlot();
		void itemClickedSlot(QTreeWidgetItem*, int);

	private:
		void contextMenuEvent(QContextMenuEvent *event) override;

	private:
		GUI::MainWindow *_mainWindow{};
		QTreeWidgetItem *_root{};
		QTreeWidgetItem *_currentItem{};
	};

}

#endif
